/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.sun.hunk.exception;

/**
 *
 * @author sunil
 */
public class GenericCodeNotFoundException extends Exception {

    private String error = "Generic Code not found.";

    public GenericCodeNotFoundException() {
    }

    public GenericCodeNotFoundException(String type, String code) {
        error = "Generic code not found for type " + type + " and code " + code;
    }

    public GenericCodeNotFoundException(String message) {
        super(message);
        error = message;
    }

    @Override
    public String getMessage() {
        return error;
    }

}
